export default [
  {
    path: '/user',
    layout: false,
    access: 'redirect',
    routes: [
      { name: '登录', access: 'redirect', path: '/user/loginByAccount', component: './User/loginByAccount/index' },

      { name: '登录', access: 'redirect', path: '/user/login', component: './User/Login' },
    ],
  },
  {
    path: '/account',
    access: 'redirect',
    routes: [
      { path: '/account/updateData', access: 'redirect', component: './account/updateData' },
      { path: '/account/updatePwd', access: 'redirect', component: './account/updatePwd' },
    ],
  },
  //成员管理
  {
    path: '/memberManagement',
    name: '成员管理',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      // { path: '', redirect: '/memberManagement/groupManage' },
      {
        name: '部门管理',
        icon: 'crown',
        access: 'canAdmin',
        path: '/memberManagement/groupManage',
        component: './memberManagement/groupManage',
      },
      {
        name: '部门成员',
        icon: 'crown',
        access: 'canAdmin',
        path: '/memberManagement/groupNumber',
        component: './memberManagement/groupNumber',
      },
    ],
  },
  //值班管理
  {
    path: '/watcher',
    name: '值班管理',
    access: 'canAdmin',
    icon: 'crown',
    routes: [
      {
        name: '值班信息列表',
        path: '/watcher/watcherTable',
        access: 'canAdmin',
        component: './watcher/watcherTable',
      },
    ],
  },

  //访问信息
  {
    path: '/accessMessage',
    name: '访问信息',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      // {
      //   name: "被限制IP管理",
      //   icon: 'crown', path: '/accessMessage/resctrictedIPManagement', component: './accessMessage/resctrictedIPManagement'
      // },
      {
        name: 'IP访问记录',
        icon: 'crown',
        access: 'canAdmin',
        path: '/accessMessage/IPAccessRecord',
        component: './accessMessage/IPAccessRecord',
      },
      // {
      //   name: "黑名单限制详情",
      //   icon: 'crown', path: '/accessMessage/blacklistDetail', component: './accessMessage/blacklistDetail'
      // },
      // {
      //   name: "白名单限制详情",
      //   icon: 'crown', path: '/accessMessage/whitelistDetail', component: './accessMessage/whitelistDetail'
      // },
    ],
  },
  //飘窗设置
  {
    path: '/windowSetting',
    name: '飘窗设置',
    icon: 'FileText',
    access: 'canAdmin',
    routes: [
      {
        name: '飘窗管理',
        access: 'canAdmin',
        path: '/windowSetting/windowManage',
        component: './windowSetting/windowManage',
      },
      {
        name: '发布对联专栏',
        access: 'canAdmin',
        path: '/windowSetting/buildCouplet',
        component: './windowSetting/buildCouplet',
      },
      {
        name: '发布漂浮专栏',
        access: 'canAdmin',
        path: '/windowSetting/buildFloat',
        component: './windowSetting/buildFloat',
      },
    ],
  },
  //资讯中心
  {
    path: '/consultCenter',
    name: '资讯中心',
    icon: 'Global',
    access: 'canAdmin',
    routes: [
      {
        name: '整站搜索',
        access: 'canAdmin',
        path: '/consultCenter/siteSearch',
        component: './consultCenter/siteSearch',
      },
      {
        name: '发布文章',
        access: 'canAdmin',
        path: '/consultCenter/publishArticle',
        component: './consultCenter/publishArticle',
      },
      {
        name: '资讯中心目录',
        access: 'canAdmin',
        path: '/consultCenter/consultCenterDic',
        component: './consultCenter/consultCenterDic',
      },
      {
        name: '数据清洗',
        access: 'canAdmin',
        path: '/consultCenter/dataCleaning',
        component: './consultCenter/dataCleaning',
      },
    ],
  },
  //统计管理
  {
    path: '/statistManage',
    name: '统计管理',
    icon: 'LineChart',
    access: 'canAdmin',
    routes: [
      {
        name: '信息统计',
        access: 'canAdmin',
        path: '/statistManage/statistMessage',
        component: './statistManage/statistMessage',
      },
      {
        name: '详情统计',
        access: 'canAdmin',
        path: '/statistManage/statistInfo',
        component: './statistManage/statistInfo',
      },
      {
        name: '日志列表',
        access: 'canAdmin',
        path: '/statistManage/logsTable',
        component: './statistManage/logsTable',
      },
    ],
  },
  {
    path: '/webManagement',
    name: '网站管理',
    icon: 'FileText',
    access: 'canAdmin',
    routes: [
      {
        name: '友情链接',
        access: 'canAdmin',
        path: '/webManagement/usefulLinks',
        component: './webManagement/usefulLinks',
      },
      {
        name: '基本信息',
        access: 'canAdmin',
        path: '/webManagement/basicInfo',
        component: './webManagement/basicInfo',
      },
      {
        name: '接口白名单',
        access: 'canAdmin',
        path: '/webManagement/apiWhiteList',
        component: './ipLimit/whiteList/index',
      }
      // {
      //   name: "发布对联专栏",
      //   path: '/windowSetting/buildCouplet', component: './windowSetting/buildCouplet'
      // },
      // {
      //   name: "发布漂浮专栏",
      //   path: '/windowSetting/buildFloat', component: './windowSetting/buildFloat'
      // },
    ],
  },
  {
    path: '/videoManagement',
    name: '视频管理',
    icon: 'FileText',
    access: 'canAdmin',
    routes: [
      {
        name: '视媒管理',
        access: 'canAdmin',
        path: '/videoManagement/mediaManagement',
        component: './videoManagement/mediaManagement',
      },
      {
        name: '发布视频',
        access: 'canAdmin',
        path: '/videoManagement/videoPublish',
        component: './videoManagement/videoPublish',
      },
      {
        name: '视频详情',
        access: 'canAdmin',
        path: '/videoManagement/videoDetail',
        component: './videoManagement/videoDetail',
      },
      {
        name: '编辑视频',
        access: 'canAdmin',
        path: '/videoManagement/videoEdit',
        component: './videoManagement/videoEdit',
      },
    ],
  },
  {
    path: '/pictureCenter',
    name: '图片中心',
    icon: 'FileText',
    access: 'canAdmin',
    routes: [
      {
        name: '图片中心目录',
        access: 'canAdmin',
        path: '/pictureCenter/pictureCenterDic',
        component: './pictureCenter/pictureCenterDic',
      },
      {
        name: '分类管理',
        access: 'canAdmin',
        path: '/pictureCenter/categoryManagement',
        component: './pictureCenter/categoryManagement',
      },
      {
        name: '图片管理',
        access: 'canAdmin',
        path: '/pictureCenter/pictureManagement',
        component: './pictureCenter/pictureManagement',
      },
      {
        name: '发布图片',
        access: 'canAdmin',
        path: '/pictureCenter/picturePublish',
        component: './pictureCenter/picturePublish',
      },
      {
        name: '编辑图片',
        access: 'canAdmin',
        path: '/pictureCenter/pictureEdit',
        component: './pictureCenter/pictureEdit',
      },
    ],
  },
  //权限管理
  {
    path: '/roleManage',
    name: '权限管理',
    icon: 'User',
    access: 'canAdmin',
    routes: [
      {
        name: '角色权限',
        access: 'canAdmin',
        path: '/roleManage/role',
        component: './roleManage/role',
      },
      // {
      //   name: "部门权限设置",
      //   path: '/roleManage/groupRoleSetting', component: './roleManage/groupRoleSetting'
      // },
      // {
      //   name: "资讯中心目录权限",
      //   path: '/roleManage/topicRole', component: './roleManage/topicRole'
      // },
      // {
      //   name: "图片中心目录权限",
      //   path: '/roleManage/photoRole', component: './roleManage/photoRole'
      // },
    ],
  },
  //网站设计
  {
    path: '/webDesign',
    name: '网站设计',
    access: 'canAdmin',
    icon: 'LineChart',
    routes: [
      {
        name: '网站设计',
        access: 'canAdmin',
        path: '/webDesign/index',
        component: './webDesign/index',
      },
      {
        name: '数据还原',
        access: 'canAdmin',
        path: '/webDesign/DataRestore',
        component: './webDesign/DataRestore/index',
      },
      {
        name: '特色服务',
        access: 'canAdmin',
        path: '/webDesign/imageCenter',
        component: './webDesign/imageCenter/index',
      },
      {
        name: '发布特色服务',
        access: 'canAdmin',
        path: '/webDesign/imagePublish',
        component: './webDesign/imagePublish/index',
      },
      {
        name: '编辑特色服务',
        access: 'canAdmin',
        path: '/webDesign/imageEdit',
        component: './webDesign/imageEdit/index',
      },
      {
        name: '菜单设置',
        access: 'canAdmin',
        path: '/webDesign/menuSetting',
        component: './webDesign/menuSetting/index',
      },
      {
        name: '子系统管理',
        access: 'canAdmin',
        path: '/webDesign/subSystemFunction',
        component: './subSystem/systemFunction/index',
      },
      {
        name: '发布子系统',
        access: 'canAdmin',
        path: '/webDesign/subSystem/publish',
        component: './subSystem/system/addOrEdit',
      },

      {
        name: '子系统功能管理',
        access: 'canAdmin',
        path: '/webDesign/subSystem',
        component: './subSystem/system/index',
      },
      {
        name: '发布子系统功能',
        access: 'canAdmin',
        path: '/webDesign/systemFunction/publish',
        component: './subSystem/systemFunction/addOrEdit',
      },
    ],
  },
  //投票管理
  {
    path: '/voteManagement',
    name: '投票管理',
    access: 'canAdmin',
    icon: 'LineChart',
    routes: [
      {
        name: '投票模板',
        access: 'canAdmin',
        path: '/voteManagement/templateManagement',
        component: './voteManagement/templateManagement',
      },
      {
        name: '参与投票',
        access: 'canAdmin',
        path: '/voteManagement/joinVote',
        component: './voteManagement/joinVote',
      },
      {
        name: '投票结果',
        access: 'canAdmin',
        path: '/voteManagement/resultManagement',
        component: './voteManagement/resultManagement',
      },
    ],
  },
  //  {
  //   path: '/PageVersionManagement',
  //   name: "数据管理",
  //   icon: 'LineChart',
  //   routes: [
  //     {
  //       name: "数据还原",
  //       path: '/PageVersionManagement/DataRestore', component: './PageVersionManagement/DataRestore'
  //     },

  //   ],
  // },
  // { name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
  {
    path: '/',
    access: 'redirect',
    redirect: '/user/login',
  },
  { path: '*', access: 'redirect', layout: false, component: './404' },
];
